package com.ruoyi.flow.config;

import com.gitee.deeround.jdbchelper.DbAction;
import com.ruoyi.flow.listener.FlowListenerContainer;
import com.ruoyi.flow.listener.InnerTestFlowListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class InnerTestFlowConfig {

    @Autowired
    private DbAction dbAction;

    @PostConstruct
    private void init() {
        FlowListenerContainer.register("test_*", new InnerTestFlowListener(dbAction));
    }

}
